package com.lin.missyou.service;

import com.lin.missyou.models.GridCategory;
import com.lin.missyou.repository.GridCategoryRespository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GridCategoryService {
    @Autowired
    private GridCategoryRespository gridCategoryRespository;

    public List<GridCategory> getGridCategoryList(){
        return gridCategoryRespository.findAllByOrderByIdDesc();
    }
}
